package com.mysite.dubbox.service;

import com.mysite.dubbox.vo.UserVo;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class UserService {

    public UserVo getUser(Long id) {
        return new UserVo(id, "用户" + id);
    }

    public Long addUser(UserVo user) {
        System.out.println("username is: " + user.getName());
        return new Random().nextLong();
    }
}
